package com.obas.access.business.service.impl;

import java.util.List;

import com.ease.common.vo.Ordering;
import com.ease.model.Model;
import com.ease.platform.access.service.impl.AbstractNamespaceAccessServiceImpl;
import com.obas.access.business.service.ParameterTypeAccessService;
import com.obas.model.business.ParameterType;
import com.obas.model.business.criteria.ParameterTypeCriteria;

public class ParameterTypeAccessServiceImpl extends AbstractNamespaceAccessServiceImpl<ParameterType> implements ParameterTypeAccessService {

	public List<ParameterType> findByTestcaseScriptId(long testcaseScriptId) {
		ParameterTypeCriteria parameterTypeCriteria = new ParameterTypeCriteria();
		parameterTypeCriteria.setTestcaseScriptId(testcaseScriptId);

		Ordering ordering = new Ordering(Model.Column_ID);
		return this.find(parameterTypeCriteria, ordering);
	}

}
